package com.openbravo.ws.externalsales;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class ProductPlus extends Product
  implements Serializable
{
  private static final long serialVersionUID = 9203746223092L;
  private double qtyonhand;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(ProductPlus.class, true);

  public ProductPlus()
  {
  }

  public ProductPlus(Category paramCategory, String paramString1, String paramString2, String paramString3, String paramString4, double paramDouble1, String paramString5, String paramString6, double paramDouble2, Tax paramTax, double paramDouble3)
  {
    super(paramCategory, paramString1, paramString2, paramString3, paramString4, paramDouble1, paramString5, paramString6, paramDouble2, paramTax);
    this.qtyonhand = paramDouble3;
  }

  public double getQtyonhand()
  {
    return this.qtyonhand;
  }

  public void setQtyonhand(double paramDouble)
  {
    this.qtyonhand = paramDouble;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof ProductPlus))
      return false;
    ProductPlus localProductPlus = (ProductPlus)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = (super.equals(paramObject)) && (this.qtyonhand == localProductPlus.getQtyonhand()) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = super.hashCode();
    i += new Double(getQtyonhand()).hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/ExternalSales", "ProductPlus"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("qtyonhand");
    localElementDesc.setXmlName(new QName("", "qtyonhand"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "double"));
    localElementDesc.setNillable(false);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.externalsales.ProductPlus
 * JD-Core Version:    0.6.0
 */